package com.ayf.payment.game.api.service.platform;

import com.ayf.payment.game.api.dto.platform.AdminRoleDTO;
import com.ayf.payment.game.api.entity.platform.AdminRole;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface AdminRoleService{

    @Transactional(rollbackFor = Exception.class)
    public void insertRoleAndPermission(AdminRoleDTO adminRoleDTO);

    @Transactional
    public void updateRoleAndPermission(AdminRoleDTO adminRoleDTO);

    public void del(AdminRole adminRole);
    @Transactional
    public void update(AdminRole adminRole);

    public AdminRole selectOne(AdminRole adminRole);

    public AdminRoleDTO selectAdminRoleAndPermission(AdminRole adminRole);

    public List<AdminRole> selectAll();
}
